<?php  
use \app\common\services\ConstantMapService;	
use \app\common\services\UrlService;	

?>
<?=Yii::$app->view->renderFile("@app/modules/web/views/common/tab_finance.php",['current'=>'index'])?>
<div class="row">
	<div class="col-lg-12">
		<form class="form-inline wrap_search">
			<div class="row  m-t p-w-m">
				<div class="form-group">
					<select name="status" class="form-control inline">
						<option value="-1">请选择状态</option></div>
						</select>
			</div>
		</form>
		<hr/>
		<table class="table table-bordered m-t">
			<thead>
			<tr>
				<th>订单编号</th>
				<th>名称</th>
				<th>价格</th>
				<th>支付时间</th>
				<th>状态</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<?php foreach($list as $v):?>
				<tr>
				<td><?=$v['order_sn']?></td>

				<td>
				<?php foreach($v['book_map'] as $item):?>
					<?=$item['name']."</br>"?>
				<?php endforeach;?>
				</td>
				<td><?=$v['pay_price']?></td>
	
				
				<td><?=date('y-m-d h:i:s',$v['pay_time'])?></td>
				<td><?=ConstantMapService::$pay_status_mapping[$v['status']]?></td>
				<td><?=date('y-m-d h:i:s',$v['created_time'])?></td>
				<td>
                    <a  href="<?=UrlService::buildWebUrl('/finance/pay_info',['id'=>$v['id']])?>">
                    <i class="fa fa-eye fa-lg"></i>
                    </a>
                </td>
			</tr>	
		<?php endforeach;?>
			</tbody>				
		</table>
		<div class="row">
	<div class="col-lg-12">
		<span class="pagination_count" style="line-height: 40px;">共14条记录 | 每页50条</span>
		<ul class="pagination pagination-lg pull-right" style="margin: 0 0 ;"></div>
	</div>
</div>

	</div>
</div>
